import { request } from '@/utils/axiosInstance.js'
const base = 'discuss'
export const getList = ({ pageSize, pageNum }) => {
    return request({
        url: `/${base}/${pageNum}/${pageSize}`,
        method: 'POST',
    })
}
export const getAllList = (data) => {
    return request({
        url: `/${base}/list`,
        method: 'POST',
        data
    })
}
export const delItem = (id) => {
    return request({
        url: `/${base}/${id}`,
        method: 'DELETE',
    })
}
export const addItem = (data) => {
    return request({
        url: `/${base}/`,
        method: 'POST',
        data
    })
}
export const updateItem = (data) => {
    return request({
        url: `/${base}/`,
        method: 'PUT',
        data
    })
}
